package com.mulanweb.api.module.controller;

import com.jfinal.plugin.activerecord.Page;
import com.mulanweb.api.module.model.City;
import com.mulanweb.api.module.model.InfoCollect;
import com.mulanweb.db.common.SQLGenerateHelper;
import com.mulanweb.validator.annotation.ValidateFile;
import com.mulanweb.validator.annotation.ValidateForm;

import java.util.Date;

/**
 * Created by Administrator on 2016/8/19.
 */
public class InfoCollectController extends BaseController {

    public void save() {
        String name = getPara("name");
        String email = getPara("email");
        String message = getPara("message");
        String subject = getPara("subject");

        InfoCollect infoCollect = new InfoCollect();
        infoCollect.setName(name);
        infoCollect.setEmail(email);
        infoCollect.setMessages(message);
        infoCollect.setSubject(subject);
        infoCollect.setCreateTime(new Date());
        infoCollect.save();
    }
}
